using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class OrderDetailsExtend
{
		public static ResponseOrderDetailsDto ToResponseDto(this OrderDetails entity)
{			return new ResponseOrderDetailsDto
			{
				id = entity.OdId,
				productId = entity.OdProductId,
				cutomerOrderId = entity.OdCutomerOrderId,
				count = entity.OdCount,
				productName = entity.OdProductName,
				singlePrice = entity.OdSinglePrice,
				productPrice = entity.OdProductPrice,
				productPayPrice = entity.OdProductPayPrice,
				discount = entity.OdDiscount,
				deduction = entity.OdDeduction,
			};
		}
	}
}
